import {
  defineStore
} from 'pinia'

export const useUserStore = defineStore('users', {
  state: () => {
    return {
      nickName: "",
      avatarUrl: '',
      appid: "wx7c19e9a830cb3e8f",
      secret: "6ffef3338bbb0c41c2ab5fb4b4044dd1",
      token: '',
      openid: ''
    }
  },

  //相当于 computed， 封装计算属性 有缓存的功能
  getters: {},

  //相当于 methods， 封装业务逻辑， 修改state
  actions: {},
})
